from app.respositories.respositories import *


# 发布动态
def publish_blog(data):
    print("data" + data)
    blog_params = {
        "content": data.get("content"),
        "title": data.get("title"),
        "image": data.get("image"),
        "user_id": data.get("user"),
    }
    insert_blog(blog_params)



